home *** CD-ROM | disk | FTP | other *** search
/ El Mac 1 / Magazine.iso / EL MAC 1 / Shareware / Comms. & Networking / randomurl 10b1 / Read Me < prev   
Encoding:
Text File  |  1995-10-01  |  5.8 KB  |  119 lines  |  [TEXT/ttxt]

  1. Random URL (CGI)
  2. Version 1.0 beta 1
  3.  
  4. by Grant Neufeld
  5.  
  6. Random URL is a CGI for WebSTAR or MacHTTP (or any other CGI sdoc compatible web server) which randomly returns an url, from a text file, to clients. This program is shareware - see below for details.
  7.  
  8.  
  9. Instructions
  10.  
  11. Put the CGI where you want it in your http folder hierarchy. The CGI is sufficiently fast at returning results that you're best to leave it as a CGI instead of an ACGI.
  12.  
  13. You need to create a text file containing the urls to be randomly chosen from. It MUST be a plain return delimited list (Macintosh format carriage returns, not UNIX linefeeds or dos crlf pairs). Do not put any spaces before or after the urls. Do not put in any blank lines. You may have one terminating return (carriage return) at the end of the file, but it is not required.
  14.  
  15. When the text file has been created, put it in the same folder as the Random URL CGI and give it the same name as the cgi with ".rnd" appended to the end of the name. So, if the cgi is named "random.cgi" the text file should be named "random.cgi.rnd". A sample file that has already been indexed (but can be re-indexed if you want to try this out) is included with the Random URL CGI.
  16.  
  17. You will want to pre-index the text file. This is done by dragging the file onto the icon of the "random.cgi" application. Important: any time you change the text file you must re-index it by dragging it onto the application icon.
  18.  
  19.  
  20. Limitations
  21.  
  22. File Size:  32767 bytes maximum size. Anything larger will not be used.
  23. URL Size:  4095 characters maximum.
  24. Total URLs:  32767. But then, you can't fit that many into a 32767 byte file anyway.
  25.  
  26. This is beta software but it seems to actually work without problems! Don't bet your life on it though...
  27.  
  28. Application errors currently aren't reported. There is also no user feedback to indicate success/failure of indexing an url list text file. These will be fixed in a future version.
  29.  
  30.  
  31. Further Information About This CGI
  32.  
  33. World Wide Web home page:
  34.      http://arpp1.carleton.ca/grant/mac/cgi/random.html
  35.  
  36. Grant's CGI Discussion & Announcements mail list:
  37. I've set up a mailing list for discussing the framework on which this CGI is based. It is intended to be a forum for information, ideas, questions and announcements about CGIs written by me, and about writing CGIs using Grant's CGI Framework. 
  38. Send a message with the command "subscribe" as the subject to: 
  39.   grantcgi@arpp1.carleton.ca
  40.  
  41. Download:
  42.   http://arpp1.carleton.ca/grant/mac/cgi/random.sit.hqx
  43.  
  44. Source Code:
  45. This application is based on "Grant's CGI Framework" which is available at:
  46.     http://arpp.carleton.ca/grant/mac/grantscgi/
  47.     http://arpp.carleton.ca/grant/mac/grantscgi.sit.hqx
  48. and on info-mac mirror sites.
  49.  
  50. The aditional code specific to this project is not available.
  51.  
  52. Legal Stuff:
  53. See the "License and Limited Warranty" document for all the boring details.
  54.  
  55.  
  56. Shareware
  57.  
  58. If you like this software and decide to continue to use it for more than 28 days, you must purchase a license the author. Each license entitles you to run as many copies of the software as you want on a single machine. Additional machines require additional licenses.
  59.  
  60.  * Commercial users: US$15 (Canadians pay CDN$15 no GST)
  61.  * Non-profit users: US$5 (Canadians pay CDN$5 no GST)
  62.  * Site License: US$50 (Canadians pay CDN$50 no GST)
  63.  * World-wide Site License: US$275 (Canadians pay CDN$275 no GST)
  64.  
  65. Add $1 if you want a paper receipt.
  66.  
  67. Please send Cash, cheque or money order payable to:
  68.  
  69. Grant Neufeld
  70. 907, 210 Gloucester Street
  71. Ottawa, Ontario
  72. K2P 2K4     CANADA
  73.  
  74. Include your name, company, mailing address (optional), and e-mail address. Registered users with e-mail addresses will receive advance updates. All registered users will be entitled to free upgrades through the life of this product.
  75.  
  76. I plan to sign up with a shareware payment service for credit card users - watch for details.
  77.  
  78.  
  79. Possible Future Enhancements
  80.  
  81. The following are things I would like to do to improve this CGI. Note that the more I receive in shareware fees, the more features will be implemented.
  82.  
  83.  * Multiple files for randomization choice
  84.  * Eliminate limitations on file size and total number of urls (or expand the limits to accommodate larger files and more urls)
  85.  * Accept path arguments ($<path_args>) to choose different url list files
  86.  * Find and index urls in any text file
  87.  * Simple preferences interface (and prefs file). Allow choosing url list file(s)
  88.  * Preferences option to identify and exclude url types (IE. "mailto:")
  89.  * Menu command for pre-indexing text files
  90.  * Deal properly with blank lines in the url list text file and define a means of commenting lines
  91.  * WebSTAR server ACTION Support
  92.  * PowerPC native
  93.  * Recognize when the text file has been modified more recently than the index and automatically update it.
  94.  * Error reporting
  95.  * Transaction log
  96.  
  97.  
  98. About the Author
  99.  
  100. I, Grant Neufeld, as of this writing, am an applications programmer for InfoDesign Corporation. My current project there is the Macintosh part of a workflow management system (WorkSMART™). The company also does some good SGML training. They can be contacted at info@idc.com. Please note that they have absolutely nothing to do with this project and are in no way associated with it or responsible for any aspect of it.
  101.  
  102. I also try (in vain) to maintain the MacHTTP & WebSTAR FAQ:
  103.   http://arpp.carleton.ca/machttp/doc/
  104.  
  105. See my vanity page for more insight into who I am and what I do:
  106.   http://arpp.carleton.ca/grant/
  107.  
  108. Contacting me:
  109.   gneufeld@ccs.carleton.ca  (At least until May 1996)
  110.   grant@acm.org
  111.   aa917@freenet.carleton.ca
  112.  
  113. ____________________
  114. Macintosh and Mac are trademarks or registered trademarks of Apple Computer, Inc.
  115. StarNine and WebSTAR are trademarks of StarNine Technologies, Inc.
  116. UNIX is a registered trademark of Novell, Inc.
  117. WorkSMART is a trademark of InfoDesign Corporation.
  118. Copyright Â©1995 by Grant Neufeld
  119.